import request from '@/utils/request'

// 注册
export const register = (data) => {
  return request({
    url: '/h5/user/register',
    method: 'post',
    data
  })
}

// 登录
export const login = (data) => {
  return request({
    url: '/h5/user/login',
    method: 'post',
    data
  })
}
// 获取用户信息
export const getUserInfo = () => {
  return request('/h5/user/currentUser')
}
